<?php
namespace app\serverfund\service\withdraw;

use \app\manage\service\ApiBase;
/**
 * @author:      李颖
 * @DateTime:    2017-08-31 11:11:16
 * @Description: 提现模块
 */
class Withdraw extends ApiBase
{


	protected $withdrawValidate = '\app\serverfund\validate\Withdraw';
    protected $withdrawLogic = '\app\serverfund\logic\Withdraw';

    /*管理员 - 获取提现列表*/
    public function adminWithdrawList(): array 
    {
        $data = $this->haveIssetReceiveData(['status'=>'','page'=>1,'listRows'=>15,'token'=>' ','keywords'=>''], ['']);
        return $this->oneStepRun($data, 'serverfund/withdraw/Withdraw/adminWithdrawList', 'withdrawList');
    }

    /*管理员 - 审核提现 review_id review_info */
    public function auditWithdraw(): array 
    {
    	$data = $this->haveIssetReceiveData(['id'=>0, 'status'=>0, 'token'=>' '], ['']);
        $checkAuth = 'serveruser/auth/Token/hGetAll,serveruser/auth/App/find,serverfund/withdraw/Withdraw/auditWithdraw';
        return $this->stepRun($data, $checkAuth, 'auditWithdraw', 'auditWithdraw', '1', $this->withdrawValidate, $this->withdrawLogic);
    	
    }

    /*管理员 - 审核转账 transfer_id transfer_info */
    public function auditTransfer(): array 
    {
        $data = $this->haveIssetReceiveData(['id'=>0, 'status'=>0, 'token'=>' '], ['']);
        $checkAuth = 'serveruser/auth/Token/hGetAll,serverfund/withdraw/Withdraw/auditTransfer';
        return $this->stepRun($data, $checkAuth, 'auditTransfer', 'auditTransfer', '1', $this->withdrawValidate, $this->withdrawLogic);
    }

}